const COURSE_NAMESPACE = 'address'

export function GET_ADDRESS_LIST(payload) {
  return {
    type: `${COURSE_NAMESPACE}/fetch`,
    payload,
  }
}

export function DELETE_ADDRESS(payload) {
  return {
    type: `${COURSE_NAMESPACE}/delete`,
    payload,
  }
}

export function DEFAULT_ADDRESS(payload) {
  return {
    type: `${COURSE_NAMESPACE}/defaultAddress`,
    payload,
  }
}

export function ADD_ADDRESS(payload) {
  return {
    type: `${COURSE_NAMESPACE}/add`,
    payload,
  }
}

export function EDIT_ADDRESS(payload) {
  return {
    type: `${COURSE_NAMESPACE}/edit`,
    payload,
  }
}

